package cn.liuhuan1.blogsModel.service;

import cn.liuhuan1.blogsModel.dao.CategoryDao;
import cn.liuhuan1.webModelBean.api.CategoryImp;
import cn.liuhuan1.webModelBean.vo.CategoryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Auther: liuhuan
 * @Date: 2021/2/22 - 02 - 22 - 15:22
 * @Description:
 * @version: 1.0
 */
@Service
public class CategoryService implements CategoryImp {

    @Autowired
    private CategoryDao categoryDao;
    @Override
    public List<CategoryVo> getcategro() {
        List<CategoryVo> category = categoryDao.getCategory();
        return category;
    }
}
